﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using MVlog.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace MVlog.Application
{
    [AutoMap(typeof(Comments))]
    public class CreateCommentsInput:EntityDto<long>
    {
        /// <summary>
        /// 文章Id
        /// </summary>
        public long? ArticleId { get; set; }

        /// <summary>
        /// 视频Id
        /// </summary>
        public long? VedioId { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Comment { get; set; }

        ///// <summary>
        ///// 文章外键
        ///// </summary>
        //[ForeignKey(nameof(ArticleId))]
        //public Article _Artcle { get; set; }

        /// <summary>
        /// 父节点
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 评论人名称
        /// </summary>
        public string UserName { get; set; }

        ///// <summary>
        ///// 评论时间
        ///// </summary>
        //public string LeaveTime { get; set; }
    }
}
